<!DOCTYPE html>
<html lang="zh-cn">
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
    <title>Warriors Name Generator | About</title>
    <link rel="stylesheet" href="https://cdn.bootcdn.net/ajax/libs/bootswatch/4.4.1/cosmo/bootstrap.min.css?v=1.0">
    <script src="https://code.jquery.com/jquery-3.4.1.slim.min.js?v=1.0"></script>
    <script src="https://stackpath.bootstrapcdn.com/bootstrap/4.4.1/js/bootstrap.min.js?v=1.0"></script>
    <style>
        body {
            font-family: '宋体', sans-serif;
            background: linear-gradient(135deg, #ececec, #f5f5f5); /* 使用合适的背景渐变 */
            background-size: cover;
            background-repeat: no-repeat;
            background-attachment: fixed;
            padding: 20px;
        }
        .navbar {
            background-color: rgba(255, 255, 255, 0.8);
            backdrop-filter: blur(10px);
            border-radius: 12px;
            box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        }
        .container {
            background-color: rgba(255, 255, 255, 0.8);
            padding: 20px;
            border-radius: 12px;
            box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
            margin-top: 20px;
        }
        h1 {
            color: #004085;
            font-weight: bold;
            text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
        }
        .btn-primary {
            background-color: #007bff;
            border: none;
            box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
            border-radius: 12px;
        }
        .btn-primary:hover {
            background-color: #0056b3;
        }
        .custom-switch {
            margin-bottom: 10px;
        }
        .custom-switch .custom-control-label {
            color: #004085;
        }
    </style>
     <script>
        document.addEventListener('DOMContentLoaded', function () {
            const script3 = document.createElement('script');
            script3.src = "../data/en.js?v=1.0";
            document.body.appendChild(script3);

            script3.onload = function () {
                // JavaScript代码部分
            };
        });
    </script>
</head>
<body>
    <header class="mb-5">
        <nav class="navbar navbar-expand-lg navbar-light">
            <a class="navbar-brand" href="./">Warriors Name Generator | About</a>
            <button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">
                <span class="navbar-toggler-icon"></span>
            </button>
            <div class="collapse navbar-collapse" id="navbarSupportedContent">
                <ul class="navbar-nav mr-auto">
                    <!-- 下拉菜单开始 -->
                    <ul class="navbar-nav">
                        <li class="nav-item">
                            <a class="nav-link" href="../en/">Return to Home</a>
                        </li>
                        <li class="nav-item dropdown">
                            <a class="nav-link dropdown-toggle" href="#" id="navbarDropdown" role="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
                                Language
                            </a>
                            <div class="dropdown-menu" aria-labelledby="navbarDropdown">
                                <a class="dropdown-item" href="../zh-cn/">中文（中国大陆）</a>
                                <a class="dropdown-item" href="../zh-tw/">中文（台灣）</a>
                                <a class="dropdown-item" href="../en/">English</a>
                            </div>
                        </li>
                        <li class="nav-item">
                            <a class="nav-link" href="https://gitlab.com/Qinshihuang233/warriors-name">Project Address</a>
                        </li>
                        <li class="nav-item">
                            <a class="nav-link" href="./about-en/">About</a>
                        </li>
                    </ul>
                    <!-- 下拉菜单结束 -->
                </ul>
            </div>
        </nav>
    </header>

    <main role="main" class="container">
        <h1>About</h1>
        <p> A pack cat name generator based on the Cat Samurai novels by Erin Hunter. This site is open source code: <a href="https://github.com/nminnow/warriors-name-generator">GitHub Repository</a>, maintained and updated by Qinshihuang233 (I). You can find the current code on <a href="https://gitlab.com/Qinshihuang233/warriors-name">GitLab</a>.</p>
        <p>It will randomly generate a name in the format of <code>Prefixsuffix</code>, where all prefixes and suffixes come from the official <em>Warriors</em> universe.</p>
        <p>Data is collected from <a href="https://crystalpool.cxuesong.com/">Crystal Pool</a>'s <a href="https://github.com/crystal-pool/Dump">RDF dump</a>. Last updated <span id="lastUpdated"></span>.</p>
        <p>This open source project: <a href="https://gitlab.com/Qinshihuang233/warriors-name">Open Source Project Address</a></p>
    </main>

    <!-- 延迟加载JavaScript文件 -->
    <script>
        document.addEventListener('DOMContentLoaded', function () {
            const script1 = document.createElement('script');
            script1.src = "https://code.jquery.com/jquery-3.4.1.slim.min.js";
            script1.integrity = "sha384-J6qa4849blE2+poT4WnyKhv5vZF5SrPo0iEjwBvKU7imGFAV0wwj1yYfoRSJoZ+n";
            script1.crossOrigin = "anonymous";
            document.body.appendChild(script1);

            const script2 = document.createElement('script');
            script2.src = "https://stackpath.bootstrapcdn.com/bootstrap/4.4.1/js/bootstrap.min.js";
            script2.integrity = "sha384-wfSDF2E50Y2D1uUdj0O3uMBJnjuUD4Ih7YwaYd1iqfktj0Uod8GCExl3Og8ifwB6";
            script2.crossOrigin = "anonymous";
            document.body.appendChild(script2);

            const script3 = document.createElement('script');
            script3.src = "../data/en.js";
            document.body.appendChild(script3);

            script3.onload = function () {
                document.getElementById("lastUpdated").innerHTML =
                    `${data.date.year}-${data.date.month}-${data.date.day}`;
            };
        });
    </script>
</body>
</html>
